<?php 
echo $homework->getTeacher(null)->getTeacherFirstName();
echo " ";
echo $homework->getTeacher(null)->getTeacherLastName();
 
?>